Sponsored Content
Top Forums Shell Programming and Scripting Parsing diff output into report Post 302596503 by gvolpini on Tuesday 7th of February 2012 02:55:21 PM
Old 02-07-2012
Please ignore this request...it is too undoable the way I have explained it...I will regroup and provide a different solution that I would like some assiatnce with...thank you all for looking.

Regards
Giuliano
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

diff 2 files; output diff's to 3rd file

Hello, I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3. For example: file 1 123 1234 123456 file 2 123 2345 23456 file 3 should have 2345 23456 I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies

2. UNIX for Dummies Questions & Answers

diff output

I have two CSV files and I would like to create a third CSV file containing the differences between the two. I understand the diff command can be used to list differences between two files. My problem is that when I pipe the output into a third CSV file, the line numbers and other formatting... (3 Replies)
Discussion started by: paulp
3 Replies

3. Shell Programming and Scripting

parsing output from a diff command...

hi, i have a script which pipes the output of a diff -rq command into a separate file/ it would read something like this: Files mod1/lala/xml/test1.txt and mod2/lala/xml/test1.txt differ Only in mod2/lala/xml: test2.txt What i need to do is to parse this file so i end up with just a... (5 Replies)
Discussion started by: kam
5 Replies

4. Shell Programming and Scripting

Is there a way to limit DIFF output

Hello is there a way to limit the number of lines output by the DIFF command? I tried -C 200 ect and -c but it continues to print out the whole huge file. Reason needed is i'm trying to do alot of DIFFs on a long list of files and would like to only get back an indicator which files are... (2 Replies)
Discussion started by: bobk544
2 Replies

5. Shell Programming and Scripting

Parsing of file for Report Generation (String parsing and splitting)

Hey guys, I have this file generated by me... i want to create some HTML output from it. The problem is that i am really confused about how do I go about reading the file. The file is in the following format: TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
8 Replies

6. Shell Programming and Scripting

diff output next to each other

I have two files to compare, but diff output doesn't give me decent output I want. The portion of the two files are shown below. file 1) Authorize <1> Transaction Database Slave 3 <1> CPM HTTP Proxy Server <1> SSP (TDB Server) <1> CPM Application Authorization <7> CPM Script... (5 Replies)
Discussion started by: Daniel Gate
5 Replies

7. Shell Programming and Scripting

Parse diff output into very detailed & summary report

Hello all; I'll try an explain my dilemma as best I can. But first some background: 1- I am suppose to compare a database to itself before and after changes; basically generate audit trail report. 2- This database contains "RULES" (the id field) that we use for transmitting files. 3 - The... (0 Replies)
Discussion started by: gvolpini
0 Replies

8. Shell Programming and Scripting

Processing diff output

How to get diff to not print the chevrons and the dashes? In this case the differences are all single line differences. Also the first few lines don't matter. How to get the output to always exclude the first few lines? Thanks! (1 Reply)
Discussion started by: stevensw
1 Replies

9. UNIX for Dummies Questions & Answers

What does this diff output mean?

35d34 < What does that mean in diff? (3 Replies)
Discussion started by: glev2005
3 Replies

10. Shell Programming and Scripting

Help with diff output

I am running diff between two directories dir1 and dir2. diff --exclude --recursive --brief -b dir1 dir2 The output of the above command is Files dir1/java/abc/bcd/abc9991.java and dir2/java/abc/bcd/abc9991.java differ Files dir1/java/abc/bcd/abc9933.java and... (11 Replies)
Discussion started by: gaurav99
11 Replies
snmpm_user(3erl)					     Erlang Module Definition						  snmpm_user(3erl)

NAME
snmpm_user - Behaviour module for the SNMP manager user. DESCRIPTION
This module defines the behaviour of the manager user. A snmpm_user compliant module must export the following functions: * handle_error/3 * handle_agent/4 * handle_pdu/4 * handle_trap/3 * handle_inform/3 * handle_report/3 The semantics of them and their exact signatures are explained below. Note that if an agent is registered using the old, no longer documented, functions (using Addr and Port), the old variant of the callback functions, handle_pdu, handle_trap, handle_inform and handle_report, will be called. EXPORTS
handle_error(ReqId, Reason, UserData) -> Reply Types ReqId = integer() Reason = {unexpected_pdu, SnmpInfo} | {invalid_sec_info, SecInfo, SnmpInfo} | {empty_message, Addr, Port} | term() Addr = ip_address() Port = integer() UserData = term() Reply = ignore This function is called when the manager needs to communicate an "asynchronous" error, to the user: e.g. failure to send an asyn- chronous message (i.e. encoding error), a received message was discarded due to security error, the manager failed to generate a response message to a received inform-request, or when receiving an unexpected PDU from an agent (could be an expired async request). If ReqId is less then 0, it means that this information was not available to the manager (that info was never retrieved before the message was discarded). For SnmpInfo see handle_agent below. handle_agent(Addr, Port, Type, SnmpInfo, UserData) -> Reply Types Addr = ip_address() Port = integer() Type = pdu | trap | report | inform SnmpInfo = SnmpPduInfo | SnmpTrapInfo | SnmpReportInfo | SnmpInformInfo ErrorStatus = atom() ErrorIndex = integer() Varbinds = [varbind()] varbind() = #varbind UserData = term() Reply = ignore | {register, UserId, TargetName, agent_info()} UserId = term() TargetName = target_name() agent_info() = [{agent_info_item(), agent_info_value()}] This function is called when a message is received from an unknown agent. Note that this will always be the default user that is called. For more info about the agent_info() , see register_agent . The arguments Type and SnmpInfo relates in the following way: * pdu - SnmpPduInfo (see handle_pdu for more info). * trap - SnmpTrapInfo (see handle_trap for more info). * report - SnmpReportInfo (see handle_report for more info). * inform - SnmpInformInfo (see handle_inform for more info). The only user which would return {register, UserId, TargetName, agent_info()} is the default user . handle_pdu(TargetName, ReqId, SnmpPduInfo, UserData) -> Reply Types TargetName = target_name() ReqId = term() SnmpPduInfo = {ErrorStatus, ErrorIndex, Varbinds} ErrorStatus = atom() ErrorIndex = integer() Varbinds = [varbind()] varbind() = #varbind UserData = term() Reply = ignore Handle the reply to an asynchronous request, such as async_get , async_get_next or async_set . It could also be a late reply to a synchronous request. ReqId is returned by the asynchronous request function. handle_trap(TargetName, SnmpTrapInfo, UserData) -> Reply Types TargetName = TargetName2 = target_name() SnmpTrapInfo = {Enteprise, Generic, Spec, Timestamp, Varbinds} | {ErrorStatus, ErrorIndex, Varbinds} Enterprise = oid() Generic = integer() Spec = integer() Timestamp = integer() ErrorStatus = atom() ErrorIndex = integer() Varbinds = [varbind()] varbind() = #varbind UserData = term() Reply = ignore | unregister | {register, UserId, TargetName2, agent_info()} UserId = term() agent_info() = [{agent_info_item(), agent_info_value()}] Handle a trap/notification message from an agent. For more info about the agent_info() , see register_agent The only user which would return {register, UserId, TargetName2, agent_info()} is the default user . handle_inform(TargetName, SnmpInformInfo, UserData) -> Reply Types TargetName = TargetName2 = target_name() SnmpInformInfo = {ErrorStatus, ErrorIndex, Varbinds} ErrorStatus = atom() ErrorIndex = integer() Varbinds = [varbind()] varbind() = #varbind UserData = term() Reply = ignore | unregister | {register, UserId, TargetName2, agent_info()} UserId = term() agent_info() = [{agent_info_item(), agent_info_value()}] Handle a inform message. For more info about the agent_info() , see register_agent The only user which would return {register, UserId, TargetName2, agent_info()} is the default user . If the inform request behaviour configuration option is set to user or {user, integer()} , the response (acknowledgment) to this inform-request will be sent when this function returns. handle_report(TargetName, SnmpReportInfo, UserData) -> Reply Types TargetName = TargetName2 = target_name() Addr = ip_address() Port = integer() SnmpReportInfo = {ErrorStatus, ErrorIndex, Varbinds} ErrorStatus = atom() ErrorIndex = integer() Varbinds = [varbind()] varbind() = #varbind UserData = term() Reply = ignore | unregister | {register, UserId, TargetName2, agent_info()} UserId = term() agent_info() = [{agent_info_item(), agent_info_value()}] Handle a report message. For more info about the agent_info() , see register_agent The only user which would return {register, UserId, TargetName2, agent_info()} is the default user . Ericsson AB snmp 4.19 snmpm_user(3erl)
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy