1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.3 -->
<HTML>
<HEAD>
<TITLE>snmpa</TITLE>
<SCRIPT type="text/javascript" src="../../../../doc/erlresolvelinks.js">
</SCRIPT>
<STYLE TYPE="text/css">
<!--
.REFBODY { margin-left: 13mm }
.REFTYPES { margin-left: 8mm }
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
ALINK="#FF0000">
<!-- refpage -->
<CENTER>
<A HREF="http://www.erlang.se">
<IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif">
</A>
<H1>snmpa</H1>
</CENTER>
<H3>MODULE</H3>
<DIV CLASS=REFBODY>
snmpa
</DIV>
<H3>MODULE SUMMARY</H3>
<DIV CLASS=REFBODY>
Interface Functions to the SNMP toolkit agent
</DIV>
<H3>DESCRIPTION</H3>
<DIV CLASS=REFBODY>
<P>The module <CODE>snmpa</CODE> contains interface functions to the
SNMP agent.
</DIV>
<H3>Common Data Types</H3>
<DIV CLASS=REFBODY>
<P>The following datatypes are used in the functions below:
<P>
<UL>
<LI>
<CODE>oid() = [byte()]</CODE>
<BR>
</LI>
</UL>
<P>The <CODE>oid()</CODE> type is used to represent an ASN.1 OBJECT
IDENTIFIER.
</DIV>
<H3>EXPORTS</H3>
<P><A NAME="add_agent_caps/2"><STRONG><CODE>add_agent_caps(SysORID, SysORDescr) -> SysORIndex</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>SysORID = oid()</CODE></STRONG><BR>
<STRONG><CODE>SysORDescr = string()</CODE></STRONG><BR>
<STRONG><CODE>SysORIndex = integer()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>This function can be used to add an AGENT-CAPABILITY
statement to the sysORTable in the agent. The table is
defined in the SNMPv2-MIB.<A NAME="del_agent_caps"><!-- Empty --></A>
</DIV>
<P><A NAME="del_agent_caps/1"><STRONG><CODE>del_agent_caps(SysORIndex) -> void()</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>SysORIndex = integer()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>This function can be used to delete an AGENT-CAPABILITY
statement to the sysORTable in the agent. This table is
defined in the SNMPv2-MIB.
<A NAME="get_agent_caps"><!-- Empty --></A>
</DIV>
<P><A NAME="get_agent_caps/0"><STRONG><CODE>get_agent_caps() -> [[SysORIndex, SysORID, SysORDescr, SysORUpTime]]</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>SysORIndex = integer()</CODE></STRONG><BR>
<STRONG><CODE>SysORId = oid()</CODE></STRONG><BR>
<STRONG><CODE>SysORDescr = string()</CODE></STRONG><BR>
<STRONG><CODE>SysORUpTime = integer()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Returns all AGENT-CAPABILITY statements in the sysORTable
in the agent. This table is defined in the SNMPv2-MIB.
<A NAME="get"><!-- Empty --></A>
</DIV>
<P><A NAME="get/2"><STRONG><CODE>get(Agent,Vars) -> Values | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="get/3"><STRONG><CODE>get(Agent,Vars,Context) -> Values | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Vars = [oid()]</CODE></STRONG><BR>
<STRONG><CODE>Context = string()</CODE></STRONG><BR>
<STRONG><CODE>Values = [term()]</CODE></STRONG><BR>
<STRONG><CODE>Reason = {atom(), oid()}</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Performs a GET operation on the agent. All loaded MIB
objects are visible in this operation. The agent calls the
corresponding instrumentation functions just as if it was a
GET request coming from a manager.
<P>Note that the request specific parameters (such as
<A HREF="#current_request_id">current_request_id</A>)
are not accessible for the instrumentation functions if this
function is used.
<A NAME="get_next"><!-- Empty --></A>
</DIV>
<P><A NAME="get_next/2"><STRONG><CODE>get_next(Agent,Vars) -> Values | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="get_next/3"><STRONG><CODE>get_next(Agent,Vars,Context) -> Values | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Vars = [oid()]</CODE></STRONG><BR>
<STRONG><CODE>Context = string()</CODE></STRONG><BR>
<STRONG><CODE>Values = [{oid(), term()}]</CODE></STRONG><BR>
<STRONG><CODE>Reason = {atom(), oid()}</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Performs a GET-NEXT operation on the agent. All loaded MIB
objects are visible in this operation. The agent calls the
corresponding instrumentation functions just as if it was a
GET request coming from a manager.
<P>Note that the request specific parameters (such as
<CODE>snmpa:current_request_id/0</CODE> are not accessible for the
instrumentation functions if this function is used.
<A NAME="get_symbolic_store_db"><!-- Empty --></A>
</DIV>
<P><A NAME="get_symbolic_store_db/0"><STRONG><CODE>get_symbolic_store_db() -> Db</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Db = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Retrieve the symbolic store database reference. This is used
for faster access to the database using the functions:
<CODE>int_to_enum/3</CODE>, <CODE>enum_to_int/3</CODE>, <CODE>name_to_oid/2</CODE>,
<CODE>oid_to_name/2</CODE>.
<A NAME="backup"><!-- Empty --></A>
</DIV>
<P><A NAME="backup/1"><STRONG><CODE>backup(BackupDir) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="backup/2"><STRONG><CODE>backup(Agent, BackupDir) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>BackupDir = string()</CODE></STRONG><BR>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Backup persistent/permanent data handled by the agent
(such as local-db, mib-data and vacm).
<P>Data stored by mnesia is not handled.
<P>BackupDir cannot be identical to DbDir. <A NAME="info"><!-- Empty --></A>
</DIV>
<P><A NAME="info/0"><STRONG><CODE>info() -> [{Key, Value}]</CODE></STRONG></A><BR>
<A NAME="info/1"><STRONG><CODE>info(Agent) -> [{Key, Value}]</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Returns a list (a dictionary) containing information about
the agent. Information includes loaded MIBs, registered
subagents, some information about the memory allocation.
<P>As of version 4.4 the format of the info has been changed.
To convert the info to the old format, call the
<A HREF="#old_info_format">old_info_format</A>. <A NAME="old_info_format"><!-- Empty --></A>
</DIV>
<P><A NAME="old_info_format/1"><STRONG><CODE>old_info_format(NewInfo) -> OldInfo</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>OldInfo = NewInfo = [{Key, Value}]</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>As of version 4.4 the format of the info has been changed.
This function is used to convert to the old (pre-4.4) info
format. <A NAME="load_mibs"><!-- Empty --></A>
</DIV>
<P><A NAME="load_mibs/1"><STRONG><CODE>load_mibs(Mibs) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="load_mibs/2"><STRONG><CODE>load_mibs(Agent,Mibs) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Mibs = [MibName]</CODE></STRONG><BR>
<STRONG><CODE>MibName = string()</CODE></STRONG><BR>
<STRONG><CODE>Reason = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Loads <CODE>Mibs</CODE> into an agent. If the agent cannot load
all MIBs, it will indicate where loading was aborted. The
<CODE>MibName</CODE> is the name of the Mib, including the path to
where the compiled mib is found. For example,
<PRE>
Dir = code:priv_dir(my_app) ++ "/mibs/",
snmpa:load_mibs(snmp_master_agent, [Dir ++ "MY-MIB"]).
</PRE>
<A NAME="unload_mibs"><!-- Empty --></A>
</DIV>
<P><A NAME="unload_mibs/1"><STRONG><CODE>unload_mibs(Mibs) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="unload_mibs/2"><STRONG><CODE>unload_mibs(Agent,Mibs) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Mibs = [MibName]</CODE></STRONG><BR>
<STRONG><CODE>MibName = string()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Unloads MIBs into an agent. If it cannot unload all MIBs,
it will indicate where unloading was aborted.
<A NAME="which_mibs"><!-- Empty --></A>
</DIV>
<P><A NAME="which_mibs/0"><STRONG><CODE>which_mibs() -> Mibs</CODE></STRONG></A><BR>
<A NAME="which_mibs/1"><STRONG><CODE>which_mibs(Agent) -> Mibs</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Mibs = [{MibName, MibFile}]</CODE></STRONG><BR>
<STRONG><CODE>MibName = atom()</CODE></STRONG><BR>
<STRONG><CODE>MibFile = string()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Retrieve the list of all the mibs loaded into this agent. Default
is the master agent.
<A NAME="whereis_mib"><!-- Empty --></A>
</DIV>
<P><A NAME="whereis_mib/1"><STRONG><CODE>whereis_mib(MibName) -> {ok, MibFile} | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="whereis_mib/2"><STRONG><CODE>whereis_mib(Agent, MibName) -> {ok, MibFile} | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>MibName = atom()</CODE></STRONG><BR>
<STRONG><CODE>MibFile = string()</CODE></STRONG><BR>
<STRONG><CODE>Reason = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Get the full path to the (compiled) mib-file.
<A NAME="current_request_id"><!-- Empty --></A>
<A NAME="current_context"><!-- Empty --></A>
<A NAME="current_community"><!-- Empty --></A>
<A NAME="current_address"><!-- Empty --></A>
</DIV>
<P><A NAME="current_request_id/0"><STRONG><CODE>current_request_id() -> {value, RequestId} | false</CODE></STRONG></A><BR>
<A NAME="current_context/0"><STRONG><CODE>current_context() -> {value, Context} | false</CODE></STRONG></A><BR>
<A NAME="current_community/0"><STRONG><CODE>current_community() -> {value, Community} | false</CODE></STRONG></A><BR>
<A NAME="current_address/0"><STRONG><CODE>current_address() -> {value, Address} | false</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>RequestId = integer()</CODE></STRONG><BR>
<STRONG><CODE>Context = string()</CODE></STRONG><BR>
<STRONG><CODE>Community = string()</CODE></STRONG><BR>
<STRONG><CODE>Address = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Get the request-id, context, community and address of the
request currently beeing processed by the agent.
<P>Note that these functions is intended to be called by the
instrumentation functions and <STRONG>only</STRONG> if they are
executed in the context of the agent process (e.g. it does
not work if called from a spawned process).<A NAME="enum_to_int"><!-- Empty --></A>
</DIV>
<P><A NAME="enum_to_int/2"><STRONG><CODE>enum_to_int(Name,Enum) -> {value, Int} | false</CODE></STRONG></A><BR>
<A NAME="enum_to_int/3"><STRONG><CODE>enum_to_int(Db,Name,Enum) -> {value, Int} | false</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Db = term()</CODE></STRONG><BR>
<STRONG><CODE>Name = atom()</CODE></STRONG><BR>
<STRONG><CODE>Enum = atom()</CODE></STRONG><BR>
<STRONG><CODE>Int = int()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Converts the symbolic value <CODE>Enum</CODE> to the
corresponding integer of the enumerated object or type
<CODE>Name</CODE> in a MIB. The MIB must be loaded.
<P><CODE>false</CODE> is returned if the object or type is not
defined in any loaded MIB, or if it does not define the
symbolic value as enumerated.
<P><CODE>Db</CODE> is a reference to the symbolic store database
(retrieved by a call to <CODE>get_symbolic_store_db/0</CODE>).
<A NAME="int_to_enum"><!-- Empty --></A>
</DIV>
<P><A NAME="int_to_enum/2"><STRONG><CODE>int_to_enum(Name,Int) -> {value, Enum} | false</CODE></STRONG></A><BR>
<A NAME="int_to_enum/3"><STRONG><CODE>int_to_enum(Db,Name,Int) -> {value, Enum} | false</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Db = term()</CODE></STRONG><BR>
<STRONG><CODE>Name = atom()</CODE></STRONG><BR>
<STRONG><CODE>Int = int()</CODE></STRONG><BR>
<STRONG><CODE>Enum = atom()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Converts the integer <CODE>Int</CODE> to the corresponding
symbolic value of the enumerated object or type <CODE>Name</CODE> in
a MIB. The MIB must be loaded.
<P><CODE>false</CODE> is returned if the object or type is not
defined in any loaded MIB, or if it does not define the
symbolic value as enumerated.
<P><CODE>Db</CODE> is a reference to the symbolic store database
(retrieved by a call to <CODE>get_symbolic_store_db/0</CODE>).
<A NAME="name_to_oid"><!-- Empty --></A>
</DIV>
<P><A NAME="name_to_oid/1"><STRONG><CODE>name_to_oid(Name) -> {value, oid()} | false</CODE></STRONG></A><BR>
<A NAME="name_to_oid/2"><STRONG><CODE>name_to_oid(Db,Name) -> {value, oid()} | false</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Db = term()</CODE></STRONG><BR>
<STRONG><CODE>Name = atom()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Looks up the OBJECT IDENTIFIER of a MIB object, given the
symbolic name. Note, the OBJECT IDENTIFIER is given for the
object, not for an instance.
<P><CODE>false</CODE> is returned if the object is not defined in any
loaded MIB.
<P><CODE>Db</CODE> is a reference to the symbolic store database
(retrieved by a call to <CODE>get_symbolic_store_db/0</CODE>).
<A NAME="oid_to_name"><!-- Empty --></A>
</DIV>
<P><A NAME="oid_to_name/1"><STRONG><CODE>oid_to_name(OID) -> {value, Name} | false</CODE></STRONG></A><BR>
<A NAME="oid_to_name/2"><STRONG><CODE>oid_to_name(Db,OID) -> {value, Name} | false</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Db = term()</CODE></STRONG><BR>
<STRONG><CODE>OID = oid()</CODE></STRONG><BR>
<STRONG><CODE>Name = atom()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Looks up the symbolic name of a MIB object, given OBJECT
IDENTIFIER.
<P><CODE>false</CODE> is returned if the object is not defined in any
loaded MIB.
<P><CODE>Db</CODE> is a reference to the symbolic store database
(retrieved by a call to <CODE>get_symbolic_store_db/0</CODE>).
<A NAME="which_aliasnames"><!-- Empty --></A>
</DIV>
<P><A NAME="which_aliasnames/0"><STRONG><CODE>which_aliasnames() -> Result</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Result = [atom()]</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Retrieve all alias-names known to the agent.<A NAME="which_tables"><!-- Empty --></A>
</DIV>
<P><A NAME="which_tables/0"><STRONG><CODE>which_tables() -> Result</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Result = [atom()]</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Retrieve all tables known to the agent.<A NAME="which_variables"><!-- Empty --></A>
</DIV>
<P><A NAME="which_variables/0"><STRONG><CODE>which_variables() -> Result</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Result = [atom()]</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Retrieve all variables known to the agent.<A NAME="log_to_txt"><!-- Empty --></A>
</DIV>
<P><A NAME="log_to_txt/2"><STRONG><CODE>log_to_txt(LogDir, Mibs)</CODE></STRONG></A><BR>
<A NAME="log_to_txt/3"><STRONG><CODE>log_to_txt(LogDir, Mibs, OutFile) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="log_to_txt/4"><STRONG><CODE>log_to_txt(LogDir, Mibs, OutFile, LogName) ->
ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="log_to_txt/5"><STRONG><CODE>log_to_txt(LogDir, Mibs, OutFile, LogName, LogFile) ->
ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="log_to_txt/6"><STRONG><CODE>log_to_txt(LogDir, Mibs, OutFile, LogName, LogFile, Start) ->
ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="log_to_txt/7"><STRONG><CODE>log_to_txt(LogDir, Mibs, OutFile, LogName, LogFile, Start, Stop)
-> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>LogDir = string()</CODE></STRONG><BR>
<STRONG><CODE>Mibs = [MibName]</CODE></STRONG><BR>
<STRONG><CODE>MibName = string()</CODE></STRONG><BR>
<STRONG><CODE>OutFile = string()</CODE></STRONG><BR>
<STRONG><CODE>LogName = string()</CODE></STRONG><BR>
<STRONG><CODE>LogFile = string()</CODE></STRONG><BR>
<STRONG><CODE>Start = Stop = null | datetime() | {local_time,datetime()} |
{universal_time,datetime()} </CODE></STRONG><BR>
<STRONG><CODE>Reason = disk_log_open_error() | file_open_error() | term()</CODE></STRONG><BR>
<STRONG><CODE>disk_log_open_error() = {LogName, term()}</CODE></STRONG><BR>
<STRONG><CODE>file_open_error() = {OutFile, term()}</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Converts an Audit Trail Log to a readable text file.
<CODE>OutFile</CODE> defaults to "./snmpa_log.txt".
<CODE>LogName</CODE> defaults to "snmpa_log".
<CODE>LogFile</CODE> defaults to "snmpa.log".
See <A HREF="snmp.html#log_to_txt">snmp:log_to_txt</A>
for more info.
</DIV>
<P><A NAME="change_log_size/1"><STRONG><CODE>change_log_size(NewSize) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>NewSize = {MaxBytes, MaxFiles}</CODE></STRONG><BR>
<STRONG><CODE>MaxBytes = integer()</CODE></STRONG><BR>
<STRONG><CODE>MaxFiles = integer()</CODE></STRONG><BR>
<STRONG><CODE>Reason = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Changes the log size of the Audit Trail Log. The application must
be configured to use the audit trail log function. Please refer to
disk_log(3) in Kernel Reference Manual for a description of how to
change the log size.
<P>The change is permanent, as long as the log is not deleted.
That means, the log size is remebered across reboots.
<A NAME="mib_of"><!-- Empty --></A>
</DIV>
<P><A NAME="mib_of/1"><STRONG><CODE>mib_of(Oid) -> {ok, MibName} | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="mib_of/2"><STRONG><CODE>mib_of(Agent, Oid) -> {ok, MibName} | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Oid = oid()</CODE></STRONG><BR>
<STRONG><CODE>MibName = atom()</CODE></STRONG><BR>
<STRONG><CODE>Reason = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Finds the mib corresponding to the <CODE>Oid</CODE>. If it is a
variable, the Oid must be
<Oid for var>.0 and if it is a table, Oid must be
<table>.<entry>.<col>.<any><A NAME="me_of"><!-- Empty --></A>
</DIV>
<P><A NAME="me_of/1"><STRONG><CODE>me_of(Oid) -> {ok, Me} | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="me_of/2"><STRONG><CODE>me_of(Agent, Oid) -> {ok, Me} | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Oid = oid()</CODE></STRONG><BR>
<STRONG><CODE>Me = #me{}</CODE></STRONG><BR>
<STRONG><CODE>Reason = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Finds the mib entry corresponding to the <CODE>Oid</CODE>. If it is a
variable, the Oid must be
<Oid for var>.0 and if it is a table, Oid must be
<table>.<entry>.<col>.<any><A NAME="register_notification_filter"><!-- Empty --></A>
</DIV>
<P><A NAME="register_notification_filter/3"><STRONG><CODE>register_notification_filter(Id, Mod, Data) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="register_notification_filter/4"><STRONG><CODE>register_notification_filter(Agent, Id, Mod, Data) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="register_notification_filter/4"><STRONG><CODE>register_notification_filter(Id, Mod, Data, Where) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="register_notification_filter/5"><STRONG><CODE>register_notification_filter(Agent, Id, Mod, Data, Where) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Id = filter_id()</CODE></STRONG><BR>
<STRONG><CODE>filter_id() = term()</CODE></STRONG><BR>
<STRONG><CODE>Mod = atom()</CODE></STRONG><BR>
<STRONG><CODE>Data = term()</CODE></STRONG><BR>
<STRONG><CODE>Where = filter_position()</CODE></STRONG><BR>
<STRONG><CODE>Reason = term()</CODE></STRONG><BR>
<STRONG><CODE>filter_position() = first | last | {insert_before, filter_id()} | {insert_after, filter_id()} </CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Registers a notification filter.
<P><CODE>Mod</CODE> is a module implementing the
<CODE>snmpa_notification_filter</CODE> behaviour.
<P><CODE>Data</CODE> will be passed on to the filter when calling the
functions of the behaviour.<A NAME="unregister_notification_filter"><!-- Empty --></A>
</DIV>
<P><A NAME="unregister_notification_filter/1"><STRONG><CODE>unregister_notification_filter(Id) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<A NAME="unregister_notification_filter/2"><STRONG><CODE>unregister_notification_filter(Agent, Id) -> ok | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Id = filter_id()</CODE></STRONG><BR>
<STRONG><CODE>filter_id() = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Unregisters a notification filter.
<A NAME="which_notification_filter"><!-- Empty --></A>
</DIV>
<P><A NAME="which_notification_filter/0"><STRONG><CODE>which_notification_filter() -> Filters</CODE></STRONG></A><BR>
<A NAME="which_notification_filter/1"><STRONG><CODE>which_notification_filter(Agent) -> Filters</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Filters = [filter_id()]</CODE></STRONG><BR>
<STRONG><CODE>filter_id() = term()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>List all notification filters in an agent.
</DIV>
<P><A NAME="register_subagent/3"><STRONG><CODE>register_subagent(Agent,SubTreeOid,Subagent) -> ok |
{error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>SubTreeOid = oid()</CODE></STRONG><BR>
<STRONG><CODE>SubAgent = pid()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Registers a subagent under a subtree of another agent.
<P>It is easy to make mistakes when registering subagents and
this activity should be done carefully. For example, a
strange behaviour would result from the following
configuration:
<PRE>
snmp_agent:register_subagent(MAPid,[1,2,3,4],SA1),
snmp_agent:register_subagent(SA1,[1,2,3], SA2).
</PRE>
<P><CODE>SA2</CODE> will not get requests starting with object
identifier <CODE>[1,2,3]</CODE> since <CODE>SA1</CODE> does not.
</DIV>
<P><A NAME="unregister_subagent/2"><STRONG><CODE>unregister_subagent(Agent,SubagentOidOrPid) -> ok | {ok,
SubAgentPid} | {error, Reason}</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>SubTreeOidorPid = oid() | pid()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Unregisters a subagent. If the second argument is a pid,
then that subagent will be unregistered from all trees in
<CODE>Agent</CODE>.
<A NAME="send_notification"><!-- Empty --></A>
</DIV>
<P><A NAME="send_notification/3"><STRONG><CODE>send_notification(Agent,Notification,Receiver)</CODE></STRONG></A><BR>
<A NAME="send_notification/4"><STRONG><CODE>send_notification(Agent,Notification,Receiver,Varbinds)</CODE></STRONG></A><BR>
<A NAME="send_notification/5"><STRONG><CODE>send_notification(Agent,Notification,Receiver,
NotifyName,Varbinds)</CODE></STRONG></A><BR>
<A NAME="send_notification/6"><STRONG><CODE>send_notification(Agent,Notification,Receiver,
NotifyName,ContextName,Varbinds) -> void() </CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Notification = atom()</CODE></STRONG><BR>
<STRONG><CODE>Receiver = no_receiver | {Tag, Recv}</CODE></STRONG><BR>
<STRONG><CODE>Tag = term()</CODE></STRONG><BR>
<STRONG><CODE>Recv = pid() | atom() | {Mod,Func,Args}</CODE></STRONG><BR>
<STRONG><CODE>Mod = atom()</CODE></STRONG><BR>
<STRONG><CODE>Func = atom()</CODE></STRONG><BR>
<STRONG><CODE>Args = list()</CODE></STRONG><BR>
<STRONG><CODE>NotifyName = string()</CODE></STRONG><BR>
<STRONG><CODE>ContextName = string()</CODE></STRONG><BR>
<STRONG><CODE>Varbinds = [Varbind]</CODE></STRONG><BR>
<STRONG><CODE>Varbind = {Variable, Value} | {Column, RowIndex, Value} |
{OID, Value}</CODE></STRONG><BR>
<STRONG><CODE>Variable = atom()</CODE></STRONG><BR>
<STRONG><CODE>Column = atom()</CODE></STRONG><BR>
<STRONG><CODE>OID = oid()</CODE></STRONG><BR>
<STRONG><CODE>Value = term()</CODE></STRONG><BR>
<STRONG><CODE>RowIndex = [int()]</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Sends the notification <CODE>Notification</CODE> to the
management targets defined for <CODE>NotifyName</CODE> in the
<CODE>snmpNotifyTable</CODE> in SNMP-NOTIFICATION-MIB from the
specified context. If no <CODE>NotifyName</CODE> is specified (or
if it is <CODE>""</CODE>), the notification is sent to all
management targets. If no <CODE>ContextName</CODE> is specified,
the default <CODE>""</CODE> context is used.
<P>The parameter <CODE>Receiver</CODE> specifies where information
about delivery of Inform-Requests should be sent. The agent
sends Inform-Requests and waits for acknowledgements from the
managers. If the <CODE>Receiver</CODE> is specified as
<CODE>no_receiver</CODE>, nothing is sent. Otherwise, it is
specified as <CODE>{Tag, Recv}</CODE>. The receiver (<CODE>Recv</CODE>)
gets a message:
<P>
<UL>
<LI>
<CODE>{snmp_targets, Tag, Addresses}</CODE>
</LI>
</UL>
<P><CODE>Addresses</CODE> is a list of management target addresses.
If UDP over IP is used, this is a 2-tuple <CODE>{IP,
UDPport}</CODE>, where <CODE>IP</CODE> is a 4-tuple with the IP
address, and <CODE>UDPport</CODE> is an integer. The notification
is sent as an Inform-Request to each target address in
<CODE>Addresses</CODE>. If there are no targets for which an
Inform-Request is sent, <CODE>Addresses</CODE> is the empty list
<CODE>[]</CODE>.
<P>For each such <CODE>Address</CODE> is the <CODE>Addresses</CODE> list,
one of the following two messages is sent to <CODE>Recv</CODE>:
<P>
<UL>
<LI>
<CODE>{snmp_notification, Tag, {got_response, Address}}</CODE>
</LI>
<LI>
<CODE>{snmp_notification, Tag, {no_response, Address}}</CODE>
</LI>
</UL>
<P>The optional argument <CODE>Varbinds</CODE> defines
values for the objects in the notification. If no value is
given for an object, the <CODE>Agent</CODE> performs a get-operation
to retrieve the value.
<P><CODE>Varbinds</CODE> is a list of <CODE>Varbind</CODE>, where each
<CODE>Varbind</CODE> is one of:
<P>
<UL>
<LI>
<CODE>{Variable, Value}</CODE>, where <CODE>Variable</CODE> is the
symbolic name of a scalar variable referred to in the notification
specification.
</LI>
<LI>
<CODE>{Column, RowIndex, Value}</CODE>, where <CODE>Column</CODE>
is the symbolic name of a column variable.
<CODE>RowIndex</CODE> is a list of indices for the specified
element. If this is the case, the OBJECT IDENTIFIER sent
in the notification is the <CODE>RowIndex</CODE> appended to the OBJECT
IDENTIFIER for the table column. This is the OBJECT
IDENTIFIER which specifies the element.
</LI>
<LI>
<CODE>{OID, Value}</CODE>, where <CODE>OID</CODE> is the OBJECT
IDENTIFIER for an instance of an object, scalar variable,
or column variable.
</LI>
</UL>
<P>For example, to specify that <CODE>sysLocation</CODE> should have the
value <CODE>"upstairs"</CODE> in the notification, we could use one of:
<P>
<UL>
<LI>
<CODE>{sysLocation, "upstairs"}</CODE> or
</LI>
<LI>
<CODE>{[1,3,6,1,2,1,1,6,0], "upstairs"}</CODE> or
</LI>
<LI>
<CODE>{?sysLocation_instance, "upstairs"}</CODE> (provided
that the generated <CODE>.hrl</CODE> file is included)
</LI>
</UL>
<P>If a variable in the notification is a table element, the
<CODE>RowIndex</CODE> for the element must be given in the
<CODE>Varbinds</CODE> list. In this case, the OBJECT IDENTIFIER sent
in the notification is the OBJECT IDENTIFIER that identifies this
element. This OBJECT IDENTIFIER could be used in a get
operation later.
<P>This function is asynchronous, and does not return any
information. If an error occurs, <CODE>user_err/2</CODE> of the error
report module is called and the notification is discarded.
</DIV>
<P><A NAME="send_trap/3"><STRONG><CODE>send_trap(Agent,Trap,Community)</CODE></STRONG></A><BR>
<A NAME="send_trap/4"><STRONG><CODE>send_trap(Agent,Trap,Community,Varbinds) -> void()</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Agent = pid() | atom()</CODE></STRONG><BR>
<STRONG><CODE>Trap = atom()</CODE></STRONG><BR>
<STRONG><CODE>Community = string()</CODE></STRONG><BR>
<STRONG><CODE>Varbinds = [Varbind]</CODE></STRONG><BR>
<STRONG><CODE>Varbind = {Variable, Value} | {Column, RowIndex, Value} |
{OID, Value}</CODE></STRONG><BR>
<STRONG><CODE>Variable = atom()</CODE></STRONG><BR>
<STRONG><CODE>Column = atom()</CODE></STRONG><BR>
<STRONG><CODE>OID = oid()</CODE></STRONG><BR>
<STRONG><CODE>Value = term()</CODE></STRONG><BR>
<STRONG><CODE>RowIndex = [int()]</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Note! This function is only kept for backwards
compatibility reasons. Use <CODE>send_notification</CODE> instead.
<P>Sends the trap <CODE>Trap</CODE> to the managers defined for
<CODE>Community</CODE> in the <CODE>intTrapDestTable</CODE> in
OTP-SNMPEA-MIB. The optional argument <CODE>Varbinds</CODE> defines
values for the objects in the trap. If no value is given for
an object, the <CODE>Agent</CODE> performs a get-operation to
retrieve the value.
<P><CODE>Varbinds</CODE> is a list of <CODE>Varbind</CODE>, where each
<CODE>Varbind</CODE> is one of:
<P>
<UL>
<LI>
<CODE>{Variable, Value}</CODE>, where <CODE>Variable</CODE> is the
symbolic name of a scalar variable referred to in the trap
specification.
</LI>
<LI>
<CODE>{Column, RowIndex, Value}</CODE>, where <CODE>Column</CODE>
is the symbolic name of a column variable.
<CODE>RowIndex</CODE> is a list of indices for the specified
element. If this is the case, the OBJECT IDENTIFIER sent
in the trap is the <CODE>RowIndex</CODE> appended to the OBJECT
IDENTIFIER for the table column. This is the OBJECT
IDENTIFIER which specifies the element.
</LI>
<LI>
<CODE>{OID, Value}</CODE>, where <CODE>OID</CODE> is the OBJECT
IDENTIFIER for an instance of an object, scalar variable,
or column variable.
</LI>
</UL>
<P>For example, to specify that <CODE>sysLocation</CODE> should have the
value <CODE>"upstairs"</CODE> in the trap, we could use one of:
<P>
<UL>
<LI>
<CODE>{sysLocation, "upstairs"}</CODE> or
</LI>
<LI>
<CODE>{[1,3,6,1,2,1,1,6,0], "upstairs"}</CODE> or
</LI>
<LI>
<CODE>{?sysLocation_instance, "upstairs"}</CODE> (provided
that the generated <CODE>.hrl</CODE> file is included)
</LI>
</UL>
<P>If a variable in the trap is a table element, the
<CODE>RowIndex</CODE> for the element must be given in the
<CODE>Varbinds</CODE> list. In this case, the OBJECT IDENTIFIER sent
in the trap is the OBJECT IDENTIFIER that identifies this
element. This OBJECT IDENTIFIER could be used in a get
operation later.
<P>This function is asynchronous, and does not return any
information. If an error occurs, <CODE>snmp_error:user_err/2</CODE>
is called and the trap is discarded.
<A NAME="convert_config"><!-- Empty --></A>
</DIV>
<P><A NAME="convert_config/1"><STRONG><CODE>convert_config(OldConfig) -> AgentConfig</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>OldConfig = list()</CODE></STRONG><BR>
<STRONG><CODE>AgentConfig = list()</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>This off-line utility function can be used to convert
the old snmp application config (pre snmp-4.0) to the
new snmp agent config (as of snmp-4.0).
<P>For information about the old config (<CODE>OldConfig</CODE>)
see the OTP R9C documentation.
<P>For information about the current agent config
(<CODE>AgentConfig</CODE>), see either
the <A HREF="snmp_app.html">SNMP application</A>
part of the reference manual or the
<A HREF="snmp_config.html">Configuring the application</A>
chapter of the SNMP user's guide.<A NAME="verbosity"><!-- Empty --></A>
</DIV>
<P><A NAME="verbosity/2"><STRONG><CODE>verbosity(Ref,Verbosity) -> void()</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>Ref = pid() | sub_agents | master_agent | net_if | mib_server |
symbolic_store | note_store | local_db</CODE></STRONG><BR>
<STRONG><CODE>Verbosity = verbosity() | {subagents, verbosity()}</CODE></STRONG><BR>
<STRONG><CODE>verbosity() = silence | info | log | debug | trace </CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P>Sets verbosity for the designated process. For the lowest
verbosity <CODE>silence</CODE>, nothing is printed. The higher the
verbosity, the more is printed.
</DIV>
<H3>See Also</H3>
<DIV CLASS=REFBODY>
<P>calendar(3), erlc(1)
</DIV>
<H3>AUTHORS</H3>
<DIV CLASS=REFBODY>
Micael Karlberg - support@erlang.ericsson.se<BR>
</DIV>
<CENTER>
<HR>
<SMALL>snmp 4.8.2<BR>
Copyright © 1991-2006
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>
|