11-22-2012
Change your function from returning a Verbosity& (i.e. a reference to a Verbosity) to returning a Verbosity.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can one string type variable changed into the date type variable. (1 Reply)
Discussion started by: rinku
1 Replies
2. Programming
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a mainframe file which i am ftping to unix box.
even though i have three records in my mainframe file the file on unix is coming as a single record.
Can you help me out.
Thanks,
Hari (3 Replies)
Discussion started by: harikiranr
3 Replies
4. Shell Programming and Scripting
Hi All
In my script, I can call on several functions. I have a logging function that is called by any of these functions. What I would like is some way of identifying which function I am using and pass this to the log function as some parameter.
Is there some built in command or way of... (3 Replies)
Discussion started by: kingpin2502
3 Replies
5. UNIX for Advanced & Expert Users
Can anyone see why the following command returns all files and not just the directories as specified?
find . -type d -exec ls -F {} \;
Also tried
find . -type d -name "*" -exec ls -F {} \;
find . -type d -name "*" -exec ls -F '{}' \; -print
Always returns all files :-\
OS is... (2 Replies)
Discussion started by: tuns99
2 Replies
6. Shell Programming and Scripting
I have a variable, vbLevel and want to assign it to one of several values which are "none", "low", "medium", "high".
Then I want to do something like
if ; then
...
fi (9 Replies)
Discussion started by: kristinu
9 Replies
7. Shell Programming and Scripting
Dear Friends,
I need your help once more.
I want to write a simple select as follows
select amount from books
where sr=1234
However, if value of "Amount" is negative then it should print it as follows.
"3000-" and not as "-3000"
Can you help me in this?
Waiting for reply
Anu. (2 Replies)
Discussion started by: anushree.a
2 Replies
8. Shell Programming and Scripting
hello i write a script which calculate free space but he always is 0 thats wrong with my script?
getFileSystemPerformanceData()
{
if ; then
if grep -q "Ubuntu" /etc/issue ; then
CMD="df -lP | grep -v "\/home" | grep -v "\/dev/mapper/VolGroup-lv_root""
elif grep... (5 Replies)
Discussion started by: donatas1234
5 Replies
9. What is on Your Mind?
hey guys,
Im back! I hadnt thought about yall in a long time. I was googling away this morning and found a solution I needed from unix.com.
good to see yall are still here and going strong!
Im working as a Bladelogic Automation Engineer and have been doing HP and BMC server automation... (0 Replies)
Discussion started by: Kelam_Magnus
0 Replies
LEARN ABOUT LINUX
snmpa_network_interface
snmpa_network_interface(3erl) Erlang Module Definition snmpa_network_interface(3erl)
NAME
snmpa_network_interface - Behaviour module for the SNMP agent network interface.
DESCRIPTION
This module defines the behaviour of the agent network interface. A snmpa_network_interface compliant module must export the following
functions:
* start_link/4
* info/1
* get_log_type/1
* set_log_type/2
* verbosity/2
The semantics of them and their exact signatures are explained below.
But this is not enough. There is also a set of mandatory messages which the network interface entity must be able to receive and be able to
send. This is described in chapter snmp_agent_netif .
EXPORTS
start_link(Prio, NoteStore, MasterAgent, Opts) -> {ok, Pid} | {error, Reason}
Types Prio = priority()
NoteStore = pid()
MasterAgent = pid()
Opts = [opt()]
opt() = {verbosity, verbosity()} | {versions, versions()} | term()
versions() = [version()]
version() = v1 | v2 | v3
Start-link the network interface process.
NoteStore is the pid of the note-store process and MasterAgent is the pid of the master-agent process.
Opts is an (basically) implementation dependent list of options to the network interface process. There are however a number of
options which must be handled: versions and verbosity .
info(Pid) -> [{Key, Value}]
Types Pid = pid()
The info returned is basically up to the implementer to decide. This implementation provided by the application provides info about
memory allocation and various socket information.
The info returned by this function is returned together with other info collected by the agent when the info function is called
(tagged with with the key net_if ).
verbosity(Pid, Verbosity) -> void()
Types Pid = pid()
Verbosity = verbosity()
Change the verbosity of a running network interface process.
get_log_type(Pid) -> {ok, LogType} | {error, Reason}
Types Pid = pid()
LogType = atl_type()
Reason = term()
The Audit Trail Log is managed by the network interface process. So, it is this process that has to retrieve the actual log-type.
set_log_type(Pid, NewType) -> {ok, OldType} | {error, Reason}
Types Pid = pid()
NewType = OldType = atl_type()
Reason = term()
The Audit Trail Log is managed by the network interface process. So, it is this process that has to do the actual changing of the
type.
See set_log_type for more info.
Ericsson AB snmp 4.19 snmpa_network_interface(3erl)