02-08-2007
Thanx for sharing this Info
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a file which looks like this
//string = "abcd"; //info
//string = "*pqrs"; //add
string = "#123"; //sub
//string = "#1234567890"
data = check(string)
//string = "#1234567890"
I want to modify this as
string = "#987"; //mult
data = check(string)
How do i do that? (1 Reply)
Discussion started by: gopsman
1 Replies
2. Shell Programming and Scripting
Hi Friends,
I need to execute a scp command to transfer some files from source to target server. Unfortunately the ftp is not working in my case.
This scp command needs to be executed via Unix script.
I need to know the complete scp command which includes the user-id and password of the... (2 Replies)
Discussion started by: sureshg_sampat
2 Replies
3. UNIX for Dummies Questions & Answers
hi,
I have to extract a column from a file and then updated that column..??
Now i can use wak for extracting it and then how to update it..
$ awk' {print $5}' input_file
Can i use sed command here piping it to the output from the awk command.. (2 Replies)
Discussion started by: abhisek.says
2 Replies
4. Shell Programming and Scripting
i Am using the below query and printing the $8 and $9 filed..
find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.xls
this give me the rsult like below..
2008/home/ADMIN/om/1.txt
2008/home/ADMIN/om/hi.txt
... (1 Reply)
Discussion started by: sapan123
1 Replies
5. Shell Programming and Scripting
wht does below statement mean?
if
wht does dis -d option do??
TIA. (1 Reply)
Discussion started by: sainathdeg
1 Replies
6. Solaris
Hi friends,
1.From the information I gathered, an inode is an object which has a number associated with it... and when a slice is partitioned, inodes with their numbers are created.
When a file is created, an inode number is assigned to it. This could be viewed through ls -i <dir/file>... (4 Replies)
Discussion started by: saagar
4 Replies
7. Shell Programming and Scripting
Hi all,
I have put a query in a thread but didn't get any reply. Hoping to get a reply here.
I have a file in that one line resembles like below...
Forwarded by Deepak on 11/15/2009 10:28 AM EST
ofcourse AM can be PM also...
so what i need is first i need to get only... (1 Reply)
Discussion started by: smarty86
1 Replies
8. UNIX for Dummies Questions & Answers
I am executing the ls command to show the contents of a folder,
it shows some number in front of word total as highlighted in blue color below quotes.
Can anyone please share that what it is? (2 Replies)
Discussion started by: Zaib
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt
grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt
But I am not sure, whether, all result stored in .txt file in case of multi-line result.
Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies
10. Emergency UNIX and Linux Support
I need to list the interfaces that uses FTP instead of SFTP on my applications that are on AIX servers. How do I get that list of IP addresses that connect to my applications via FTP? (2 Replies)
Discussion started by: ggayathri
2 Replies
LEARN ABOUT DEBIAN
snmp::info::entity
Info::Entity(3pm) User Contributed Perl Documentation Info::Entity(3pm)
NAME
SNMP::Info::Entity - SNMP Interface to data stored in ENTITY-MIB. RFC 2737
AUTHOR
Max Baker
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $entity = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.
";
my $class = $entity->class();
print "SNMP::Info determined this device to fall under subclass : $class
";
DESCRIPTION
ENTITY-MIB is used by Layer 2 devices from HP, Aironet, Foundry, Cisco, and more.
See RFC 2737 for full details.
Create or use a device subclass that inherit this class. Do not use directly.
For debugging purposes you can call this class directly as you would SNMP::Info
my $entity = new SNMP::Info::Entity (...);
Inherited Classes
none.
Required MIBs
ENTITY-MIB
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
GLOBALS
none.
TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash.
Entity Table
$entity->e_index()
Index
("entPhysicalIndex")
$entity->e_alias()
Human entered, not usually used.
("entPhysicalAlias")
$entity->e_class()
Stack, Module, Container, Port ...
("entPhysicalClass")
$entity->e_descr()
Human Friendly
("entPhysicalClass")
$entity->e_fwver()
("entPhysicalFirmwareRev")
$entity->e_fru()
BOOLEAN. Field Replaceable unit?
("entPhysicalFRU")
$entity->e_hwver()
("entPhysicalHardwareRev")
$entity->e_id()
This is human entered and not normally used.
("entPhysicalAssetID")
$entity->e_map()
See MIB.
("entAliasMappingIdentifier")
$entity->e_model()
Model Name of Entity.
("entPhysicalModelName")
$entity->e_name()
More computer friendly name of entity. Parse me.
("entPhysicalName")
$entity->e_parent()
0 if root.
("entPhysicalContainedIn")
$entity->e_port()
Maps Entity Table entries to the Interface Table ("IfTable") using $entity->e_map()
$entity->e_pos()
The relative position among all entities sharing the same parent.
("entPhysicalParentRelPos")
$entity->e_serial()
("entPhysicalSerialNum")
$entity->e_swver()
("entPhysicalSoftwareRev")
$entity->e_type()
This is an OID, which gets munged into the object name if the right MIB is loaded.
("entPhysicalVendorType")
$entity->e_vendor()
Vendor of Module.
("entPhysicalMfgName")
perl v5.12.4 2011-09-28 Info::Entity(3pm)