[INUG-Users] Regarding PERL syntax
Satyanarayana_Mamidisetti
Satyanarayana_Mamidisetti at satyam.com
Wed Feb 27 06:14:02 EST 2008
Hai Netcoolers,
I am writing a script which can read the values from
CSV file and send those values as a Traps to mttrapd.cap file at the
destination side.In this way I have to concatenate the OID value i.e..
.1.3.6.1.4.1.1088.4.23.5 with other integer values like
1,2,3............
So the output must be like this .1.3.6.1.4.1.1088.4.23.5.1 and
.1.3.6.1.4.1.1088.4.23.5.2
I had taken OID value in one variable like $OID =
.1.3.6.1.4.1.1088.4.23.5 and $temp = 2 and $dot = "."
If I wrote like this $cat = $OID.$dot.$temp;
Then $cat contains the end value like this
.1.3.6.1.4.1.1088.4.23.5
.2
OID value in one line and the other value in other line
But I want the entire value after concatenating with . must be in same
line so that I can send it as a OID to the end system
If I send $cat as a trap to the capture file it is taking only
.1.3.6.1.4.1.1088.4.23.5 leaving the end values
But I want the trap format as .1.3.6.1.4.1.1088.4.23.5.2 this
Could you please help me out regarding this issue
Thanks & Regards
Satyanarayana Mamidisetti
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
More information about the Users
mailing list