Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netsnmp::oid(3) [centos man page]

OID(3)							User Contributed Perl Documentation						    OID(3)

NAME
NetSNMP::OID - Perl extension for manipulating OIDs SYNOPSIS
use NetSNMP::OID; my $oid = new NetSNMP::OID('sysContact.0'); if ($oid < new NetSNMP::OID('ifTable')) { do_something(); } my @numarray = $oid->to_array(); # appending oids $oid = new NetSNMP::OID('.1.3'); $oid += ".6.1"; # -> .1.3.6.1 # appending index strings $oid2 = $oid + ""wes""; # -> .1.3.6.1.3.119.101.115 $oid3 = $oid + "'wes'"; # -> .1.3.6.1.119.101.115 $len = $oid3->length(); # -> 7 # retrieving indexes from an oid: $arrayref = $tableoid->get_indexes() DESCRIPTION
The NetSNMP::OID module is a simple wrapper around a C-based net-snmp oid (which is an array of unsigned integers). The OID is internally stored as a C array of integers for speed purposes when doing comparisons, etc. The standard logical expression operators (<, >, ==, ...) are overloaded such that lexographical comparisons may be done with them. The + operator is overloaded to allow you to append stuff on to the end of a OID, like index segments of a table, for example. EXPORT int snmp_oid_compare(oid1, oid2) int compare(oid1, oid2) AUTHOR
Wes Hardaker, <hardaker@users.sourceforge.net> SEE ALSO
SNMP, perl. Copyright Copyright (c) 2002 Networks Associates Technology, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2012-10-09 OID(3)

Check Out this Related Man Page

GSSAPI::OID(3)						User Contributed Perl Documentation					    GSSAPI::OID(3)

NAME
GSSAPI::OID - methods for handling GSSAPI OIDs and some constant OIDs SYNOPSIS
use GSSAPI; #$oid = GSSAPI::OID->new; # rarely needed or wanted $status = GSSAPI::OID->from_str($oid, "{ 1 2 840 113554 1 2 1 1 }"); # # only supported on MIT Kerberos # $status = $oid->to_str($str); # # only supported on MIT Kerberos # $status = $oid->inquire_names($oidset); # Constant OIDs provided: $oid = gss_nt_user_name; $oid = gss_nt_machine_uid_name; $oid = gss_nt_string_uid_name; $oid = gss_nt_service_name; $oid = gss_nt_exported_name; $oid = gss_nt_service_name_v2; $oid = gss_nt_krb5_name; $oid = gss_nt_krb5_principal; $oid = gss_mech_krb5; $oid = gss_mech_krb5_old; $oid = gss_mech_krb5_v2; $oid = gss_mech_spnego; # if your GSSAPI implementation supports # SPNEGO (Heimdal 0.7 for example # you can use mechtype OID::gss_mech_spnego. # # use GSSAPI::indicate_mechs( $oidset ); # to get the of mechtypes your implementation supports $oid = gss_nt_hostbased_service; # GSS_C_NT_HOSTBASED_SERVICE DESCRIPTION
"GSSAPI::OID" objects are used as unique indentifiers/constants for 'mechanisisms' -- the particular protocol and version being used -- and for the encodings used to represent names. In many cases you can request the default mechanism or encoding for the implmentation by using GSS_C_NO_OID. Check the description of the routine in rfc2743 if you're not sure. AUTHOR
maintained by Achim Grolms <perl@grolmsnet.de> originally written by Philip Guenther <pguen@cpan.org> SEE ALSO
perl(1) GSSAPI(3p) GSSAPI::OID::Set(3p) RFC2743 perl v5.18.2 2008-02-02 GSSAPI::OID(3)
Man Page

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed make me headache... need help!

I've still a little problem with sed. So, the content of my file.txt is like: 101.10.20.2.1079 > 101.11.2.20.80: 101.10.20.2.1080 > 101.11.2.20.80: 101.10.20.2.1081 > 101.10.20.2..80: 101.05.15.143.1068 > tpo68-96-22-1.no.no.cox.net.4391: 101.05.15.143.1072 >... (5 Replies)
Discussion started by: nymus7
5 Replies

2. UNIX for Advanced & Expert Users

Hiding Passwords while typing..

Hi, We need ur advice,... We are integrating our application (oracle) with OID,and OID is with another team. While integrating they have to provide their 'ADMIN-password' when the script prompts ,But the password they are about type is visible. If this is the case they are denying it,.... Is... (1 Reply)
Discussion started by: rrs
1 Replies

3. UNIX for Dummies Questions & Answers

reading ,writing,appending ,manipulating a file.

Hi my prob statement is to create a new file or to append to the 1tst file the followign chages. File 1: txt file. portfolio No a b c d abc 1 Any Any Any charString cds 2 values values values charString efd 3 can can can charString fdg 4 come come come charString... (4 Replies)
Discussion started by: szchmaltz
4 Replies

4. IP Networking

netSnmp question

Hello all, I have a question about NetSnmp "http://net-snmp.sourceforge.net/" I wanna configure my NetSnmp that when i get information by snmpget|walk from snmpagent from specific OID, netsnmp will execute configured command and will return me command output with string .... For example: I do get... (0 Replies)
Discussion started by: hemulll
0 Replies

5. IP Networking

Automating show module with snmp

I am able to automate the process of actually pushing the config, but I am having a hard time getting oid .1.3.6.1.4.1.9.5.1.3.1.1.17 to work. I am trying to avoid having to login into a bunch of switches to grab a show module. Thanks alot (0 Replies)
Discussion started by: popeye
0 Replies

6. UNIX for Advanced & Expert Users

Linux Based Application OID

Hi I am searching for system OID on an application which is linux based. Can any one please let me know, where can I find from Command line? Thanks in advance. (1 Reply)
Discussion started by: sureshcisco
1 Replies

7. Infrastructure Monitoring

SNMP OID for System Status LED's

I am trying to locate the proper MIB and OID location, to determine if the system attention light is on IBM-702x servers running 5.x. Currently, we get this on our Blade Centers Management Modules at location: 1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.7.xx were xx is the actual Blade number. A value of 1... (0 Replies)
Discussion started by: stamfdf
0 Replies

8. Solaris

Solaris 10 Snmp command to MiB OID

(1 Reply)
Discussion started by: tien86
1 Replies

9. Shell Programming and Scripting

remove space

File A.txt A005 -119.5 -119.5 -100.5 A006 -120.5 -119.5 -119.3 A008 0 0 0 Output A005 -119.5 -119.5 -100.5 A006 -120.5 ... (1 Reply)
Discussion started by: asavaliya
1 Replies

10. Shell Programming and Scripting

Transpose Data form Different form

HI Guys, I have data in File A.txt RL03 RL03_A_1 RL03_B_1 RL03_C_1 RL03 -119.8 -119.5 -119.5 RL07 RL07_A_1 RL07_B_1 RL07_C_1 RL07 -119.3 -119.5 -119.5 RL15 RL15_A_1 RL15_C_1 RL15 -120.5 -119.4 RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies

11. Shell Programming and Scripting

Display combination of 4 field uniqe record and along with concatenate 5th and 6th field.

Table ACN|NAME|CITY|CTY|NO1|NO2 115|AKKK|ASH|IND|10|15 115|AKKK|ASH|IND|20|20 115|AKKK|ASH|IND|30|35 115|AKKK|ASH|IND|30|35 112|ABC|FL|USA|15|15 112|ABC|FL|USA|25|20 112|ABC|FL|USA|25|45 i have written shell script using cut command and awk programming getting error correct it and add... (5 Replies)
Discussion started by: udhal
5 Replies