Understanding output of : ucsm-B(nxos)# sh int br
Hi All ,
Could you please help me understand the output of the following command :
ucsm-B(nxos)# sh int br
I have a few queries on the interfaces number eth1/1/1 to eth 1/1/8 :
What governs the naming convetion used for the ethernet ports starting eth1/1/1 to eth1/1/9 ?
If I connect another chassis to the FI , will it start by eth2/1/1 ?
I would like to understand how Eth1/x/x or Eth2/x/x is decided by the UCS for naming ..
--------------- truncated -----------------------------------------------------------------------------------------------------
Interface Vsan Admin Admin Status SFP Oper Oper Port
Mode Trunk Mode Speed Channel
Mode (Gbps)
vfc684 102 F on trunking -- TF auto --
vfc688 102 F on trunking -- TF auto --
Ethernet VLAN Type Mode Status Reason Speed Port
Interface Ch #
Eth1/1/1 1 eth vntag up none 10G(D) --
Eth1/1/2 1 eth vntag up none 10G(D) --
Eth1/1/3 1 eth vntag up none 10G(D) --
Eth1/1/4 1 eth access down Administratively down 10G(D) --
Eth1/1/5 1 eth access down Administratively down 10G(D) --
Eth1/1/6 1 eth access down Administratively down 10G(D) --
Eth1/1/7 1 eth access down Administratively down 10G(D) --
Eth1/1/8 1 eth access down Administratively down 10G(D) --
Eth1/1/9 4044 eth trunk up none 10G(D) --
Hello Vikas,
These are host interfaces ( HIF ) / backplane ports on the FEX / IOM connecting to the blades.
Eth//
" show fex detail " would provide additional information about FEX ports.
The ninth interface provides CIMC connectivity to the blades,
HTH
Padma
Similar Messages
-
Understanding Output Error Messages
I don't understand the "heirarchy" of Flash Output Error Messages.
For example:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at bBrand_Gallery()
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at bBrand_Gallery/startShow()
at bBrand_Gallery/onComplete()
This error shows when I preview a SWF that calls en external swf. All the code listed in the Error Codes is contained in the external swf. In the TypeError -- where do I look for the problem code? bBrand_Gallery is a class description for the externally called swf. The externally called swf runs fine by itself. All functions in the package are declared as public functions. I know that the null object reference means that it's looking for the property of an object that is not yet instantiated. How do I find that object? Would it most likely be a variable that is not delacred publicly?
I believe the ArgumentError has to do with the fact that the DisplayObject in question is not "created" by the function startShow which includes the removeChild statement. How do I resolve that issue??
Is there a reference as to the best way to interpret these error messages?? I'm so confused!?!?!!?
Thanks,
MikeNed Murphy wrote:
The messages remain something in the way of being difficult to interpret, but sometimes you can get a little better information when you set the option to Permit Debugging in the Flash Publish Settings. Your 1009 error would end up presenting you with a line number just after the frame number to help you narrow down the problem...
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at bBrand_Gallery() frame1:19
That's telling you line 19 holds the problemed code. Error messages normally report in a manner of increasing distance from the problemed code. So you can normally stop looking after the first localization...
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
In the case of this error, you need to focus on what it tells you... there is a removeChild attempt being made for something that is not a child of the container object targeted... and if you follow on, it looks like it is being attempted in a function named startShow, which may have been executed via another function named onComplete
Ned -- thanks for the feedback.
I enabled Debugging and published again -- the error code remains the same, with no number or frame info.
AFA the ArgumentError -- I suspect it's not showing as a child since the errors are preventing the entire swf from loading and running. The child is never created. I need to find the first error, and then the second should disappear.
I guess the next step is to comment out sections of code and see what elinminates the error and then go from there. . .
If you have any other suggestions I'm game. Thanks for explaining the sequence of the messages -- I suspected that was the case, but your confirmation helps.
ETA: Found it.
There was a reference to the stage width in positioning the preloader, which is a TextField. The external SWF couldn't reference the stage dimensions. I replaced the stage reference with hard dimensions, and the errors are gone.
Thanks again for your help, Ned. . .
Message was edited by: mjperry1951 -
Understanding output of sp_helpsegment "default".
Hi Community.
I need understand why in the output of sp_helpsegment "default" I can see some system tables as syscomments,sysreferences and some indexes of syscomments,sysreferences,sysusermessages?.
I question this because I Know that All System tables without syslogs must be in the System Segment.
What is the reason?
1> sp_helpsegment "default"
2> go
segment name status
1 default 1
device size free_pages
prueba_mixed2 50.0MB 24600
Objects on segment 'default':
table_name index_name indid partition_name
syscomments syscomments 0 syscomments_6
syscomments csyscomments 2 csyscomments_6
sysreferences sysreferences 0 sysreferences_16
sysreferences ncsysreferences 2 ncsysreferences_16
sysreferences nc2sysreferences 3 nc2sysreferences_16
sysreferences csysreferences 4 csysreferences_16
sysusermessages csysusermessages 1 csysusermessages_15
sysusermessages ncsysusermessages 2 ncsysusermessages_15
table_pru table_pru 0 table_pru_608002166
table_pru2 table_pru2 0 table_pru2_640002280
table_pru3 table_pru3 0 table_pru3_672002394
Objects currently bound to segment 'default':
table_name index_name indid
syscomments syscomments 0
syscomments csyscomments 2
sysreferences sysreferences 0
sysreferences ncsysreferences 2
sysreferences nc2sysreferences 3
sysreferences csysreferences 4
sysusermessages csysusermessages 1
sysusermessages ncsysusermessages 2
table_pru table_pru 0
table_pru2 table_pru2 0
table_pru3 table_pru3 0
total_size total_pages free_pages used_pages reserved_pages
50.0MB 25600 24600 1000 0
(return status = 0)
Thanks.
Cristian Lopez.Hi Cristian,
I see the same thing on my own server, so it appears to be "normal". I don't know why this would be so, though. Logically, these should be on the system segment. I suspect it is a minor bug of some kind in the bootstrap install/upgrade code. I do not believe it will cause any actual problems, even if you were to take the unusual step of separating the default and system segments on different devices.
I'll post a followup if I can find an actual explanation.
-bret -
Understanding output of sh crypto ipsec sa peer
Hi All,
I a bit puzzled by why the remote indent and remote crypto endpointpt ID is different. I also noticed that the remote ident address matches the remote NBMA address, but just not the remote crypto endpt address. I really expected the remote crypto endpt address to be the same as the remote indent address and remote NBMA address (remote tunnel source address). Tunnel1 is an mGRE tunnel protected by IPSec.
Could anyone shed light on this?
Thanks,
David
Router#sh crypto ipsec sa peer 1.1.1.1
interface: Tunnel1
Crypto map tag: Tunnel1-head-0, local addr 2.2.2.2
protected vrf: (none)
local ident (addr/mask/prot/port): (2.2.2.2/255.255.255.255/47/0)
remote ident (addr/mask/prot/port): (3.3.3.3/255.255.255.255/47/0)
current_peer 1.1.1.1 port 4500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 7978837, #pkts encrypt: 7978837, #pkts digest: 7978837
#pkts decaps: 7286115, #pkts decrypt: 7286115, #pkts verify: 7286115
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts compr. failed: 0
#pkts not decompressed: 0, #pkts decompress failed: 0
#send errors 0, #recv errors 14644
local crypto endpt.: 2.2.2.2, remote crypto endpt.: 1.1.1.1
path mtu 1514, ip mtu 1514, ip mtu idb Loopback2
current outbound spi: 0xB96E4FB1(3111014321)
inbound esp sas:
spi: 0xB1D02649(2983208521)
transform: esp-256-aes esp-sha-hmac ,
in use settings ={Tunnel UDP-Encaps, }
conn id: 3002, flow_id: Onboard VPN:2, crypto map: Tunnel1-head-0
sa timing: remaining key lifetime (k/sec): (4501742/22874)
IV size: 16 bytes
replay detection support: Y
Status: ACTIVE
inbound ah sas:
inbound pcp sas:
outbound esp sas:
spi: 0xB96E4FB1(3111014321)
transform: esp-256-aes esp-sha-hmac ,
in use settings ={Tunnel UDP-Encaps, }
conn id: 3001, flow_id: Onboard VPN:1, crypto map: Tunnel1-head-0
sa timing: remaining key lifetime (k/sec): (4445656/22873)
IV size: 16 bytes
replay detection support: Y
Status: ACTIVE
outbound ah sas:
outbound pcp sas:The output suggests you have NAT-T in the network and IPSEC tunnel mode turned on. If the transform-set is set to transport mode, clear the crypto sessions then remote ident and crypto endpoint will be the same address.
HTH,
Dan -
Does anyone understand output power?
ADSL line status
Connection Information
Line state
Connected
Connection time
0 days, 03:12:05
Downstream
287 Kbps
Upstream
846 Kbps
ADSL Settings
VPI/VCI
0/38
Type
PPPoA
Modulation
G.992.5 Annex A
Latency type
Interleaved
Noise margin (Down/Up)
9.8 dB / 6.4 dB
Line attenuation (Down/Up)
58.9 dB / 35.0 dB
Output power (Down/Up)
1.4 dBm / 1.2 dBm
Loss of Framing (Local/Remote)
0 / 0
Loss of Signal (Local/Remote)
0 / 0
Loss of Power (Local/Remote)
0 / 0
FEC Errors (Down/Up)
10643 / 1
CRC Errors (Down/Up)
2 / 1
HEC Errors (Down/Up)
0 / 0
Error Seconds (Local/Remote)
2 / 1
Does low output power indicate a high resistance fault in a wire ?No it does not.
Your connection speed should be about 2944Kbs
To enable forum members to help you, please could you look at Helping forum members to help you which asks you to do a few checks first, and has some helpful hints.
When you have done that, please post the results here, so members can offer advice. Thank you.
There are some useful help pages here, for BT Broadband customers only, on my personal website.
BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones. -
Hi,
I'm trying to follow some Java code but I don't understand the syntax being used. If you define a class and then define a method within that class, is it automatically run? I'm attaching some sample code. I don't understand how public void map (line 18) is ever called or run, yet it is.
1. package org.myorg;
2.
3. import java.io.IOException;
4. import java.util.*;
5.
6. import org.apache.hadoop.fs.Path;
7. import org.apache.hadoop.conf.*;
8. import org.apache.hadoop.io.*;
9. import org.apache.hadoop.mapred.*;
10. import org.apache.hadoop.util.*;
11.
12. public class WordCount {
13.
14. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
15. private final static IntWritable one = new IntWritable(1);
16. private Text word = new Text();
17.
18. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
19. String line = value.toString();
20. StringTokenizer tokenizer = new StringTokenizer(line);
21. while (tokenizer.hasMoreTokens()) {
22. word.set(tokenizer.nextToken());
23. output.collect(word, one);
24. }
25. }
26. }
27.
28. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
29. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
30. int sum = 0;
31. while (values.hasNext()) {
32. sum += values.next().get();
33. }
34. output.collect(key, new IntWritable(sum));
35. }
36. }
37.
38. public static void main(String[] args) throws Exception {
39. JobConf conf = new JobConf(WordCount.class);
40. conf.setJobName("wordcount");
41.
42. conf.setOutputKeyClass(Text.class);
43. conf.setOutputValueClass(IntWritable.class);
44.
45. conf.setMapperClass(Map.class);
46. conf.setCombinerClass(Reduce.class);
47. conf.setReducerClass(Reduce.class);
48.
49. conf.setInputFormat(TextInputFormat.class);
50. conf.setOutputFormat(TextOutputFormat.class);
51.
52. FileInputFormat.setInputPaths(conf, new Path(args[0]));
53. FileOutputFormat.setOutputPath(conf, new Path(args[1]));
54.
55. JobClient.runJob(conf);
57. }
58. }If you define a class and then define a method within that class, is it automatically run?No.
However, if you start the JVM from the command line, the main() method is invoked. In the main() method of your class, you pass the WordCount class to the JobConf constructor then use something called JobClient to call runJob on that JobConf, so presumably map() is invoked indirectly that way. -
Recomended output settings for screen recordings
I am fairly new at this and all of the options for outputs, inuts, codecs and the like are bit overwelming. I was wondering if anyoen could share me me some of their seetings that they use for the output of video for the web. I will be outputting at 880 X 660 if that metters.
Many thanks,
HoustonHere is the (perfectly working) code that this resulted in:
/// <summary>
/// Using the export function (instead of hard-to-understand-output-script in the SaveForWeb function below)
/// We have not yet found a way to respect the output setting (regarding) åäö in saving files tab of the flyout-menu
/// in Save for web and devices (no matter using the export function or the old "script" way).
/// Currently using a workaround, by setting the final name AFTER that the file has been exported.
/// </summary>
/// <param name="docRef">The document to export</param>
/// <param name="filePath">The path to the file to write</param>
/// <param name="percentage">Jpeg compression in percent</param>
private void SaveJpegForWebUsingExport(dynamic docRef, string filePath, int percentage)
// Begin with deleting the destination image if it already existed on disk.
if (System.IO.File.Exists(filePath))
System.IO.File.Delete(filePath);
//var options = new ExportOptionsSaveForWeb;
dynamic options = Activator.CreateInstance(Type.GetTypeFromProgID("Photoshop.ExportOptionsSaveForWeb"));
options.quality = percentage;
options.format = 6; // JPEG = 6 (according to Object Model Viewer i Extenscript Toolkit) .Type.GetTypeFromProgID("SaveDocumentType.JPEG"); // Save Format for the file
var mockupValidFilePath = System.IO.Directory.GetParent(filePath).FullName + "\\tempfile.jpg";
// dynamic exportType = Type.GetTypeFromProgID("ExportType.SAVEFORWEB"); fungerar inte
// ExportType.SAVEFORWEB = 2 (according to Object Model Viewe in Extenscript Toolkit)
docRef.Export(mockupValidFilePath, 2, options);
// Since "Save for web and devices" (export document) renders unpredictable results,
// neglecting the output settings, we rename the file after it has been exported.
System.IO.File.Move(mockupValidFilePath, filePath); -
DMVPN in Cisco 3945 output drop in tunnel interface
I configured DMVPN in Cisco 3945 and checked the tunnel interface. I found out that I have output drop. How can I remove that output drop? I already set the ip mtu to 1400.
CORE-ROUTER#sh int tunnel 20
Tunnel20 is up, line protocol is up
Hardware is Tunnel
Description: <Voice Tunneling to HO>
Internet address is 172.15.X.X./X
MTU 17878 bytes, BW 1024 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 10.15.X.X (GigabitEthernet0/1)
Tunnel Subblocks:
src-track:
Tunnel20 source tracking subblock associated with GigabitEthernet0/1
Set of tunnels with source GigabitEthernet0/1, 1 member (includes iterators), on interface <OK>
Tunnel protocol/transport multi-GRE/IP
Key 0x3EA, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Tunnel transport MTU 1438 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Tunnel protection via IPSec (profile "tunnel_protection_profile_2")
Last input 00:00:01, output never, output hang never
--More-- Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 7487
Queueing strategy: fifo
Output queue: 0/0 (size/max)
30 second input rate 0 bits/sec, 0 packets/sec
30 second output rate 0 bits/sec, 0 packets/sec
48007 packets input, 4315254 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
42804 packets output, 4638561 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
interface Tunnel20
description <Bayantel Voice tunneling>
bandwidth 30720
ip address 172.15.X.X 255.255.255.128
no ip redirects
ip mtu 1400
no ip next-hop-self eigrp 20
no ip split-horizon eigrp 20
ip nhrp authentication 0r1x@IT
ip nhrp map multicast dynamic
ip nhrp network-id 1002
ip nhrp holdtime 300
ip tcp adjust-mss 1360
tunnel source FastEthernet0/0/1
tunnel mode gre multipoint
tunnel key 1002
tunnel protection ipsec profile tunnel_protection_profile_2 sharedHi,
Thanks for the input. If the radio is sending out the packet but client did not receive, not output drop should be seen since packet is sent out, right?
From my understanding, output drop is related to congested interface. Outgoing interface cannot take the rate packets coming in and thus droping it. What I don't understand is input and output rate has not reached limit yet. Also input queue is seeing drop of packet as well even though input queue is empty.
Any idea? -
Why do I have to declare my int outside the function?
`Hi!
I've writen the very simple class get_results with one methode test:
public class Get_results {
protected int nb=0;
public int test(int numb) {
//int nb=0;
nb=numb;
return nb;
}//End test
}//End classthis methode will be called from a jsp file:
<jsp:useBean id="results" scope="session" class="mypackage.Get_results" />
<%= results.test(3) %>I don't understand why I have to declare int nb outside the function test. If I declare int nb at the beginning of the function and not right at the beginning of the class
public class Get_results {
public int test(int numb) {
int nb=0;
nb=numb;
return nb;
}//End test
}//End classthe it doesn't work. I don't understand why since I only need the int nb in the test methode and nowhere else in the class.
can anyone explane this to me?
thanks.
Message was edited by:
ChristopheD
Message was edited by:
ChristopheDI get this message:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: 2
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.ArrayIndexOutOfBoundsException: 2
org.apache.jsp.grammaire_002dresults_jsp._jspService(grammaire_002dresults_jsp.java:219)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Message was edited by:
ChristopheD -
How to convert String "(50-10)" to number and get output as 40 as a number.
Hi,
I have a string with formula, eg: String formula="(ABC-DEF)";
I replaced the values of ABC and DEF in the above string now I have formula="(50-10)";
How can I calculate the above value and get output (40)as a number like int or double.
Regards
Alex.
Edited by: AlexRaju on Dec 8, 2009 10:11 AMValues for ABC and DEF are coming from different java collections like HashMap or ArrayList etc. The formulas can be complex which need some string manipulations and atlast I will get a string like "(50-10)" or "(20+(Math.SQRT(25)/Math.Power(2,3)))". Here all the numbers are values for variables like ABC or DEF coming from different hashmaps and arraylists based on different conditions.
Thanks
Alex.
Edited by: AlexRaju on Dec 8, 2009 10:36 AM -
Need info about "sh int dot11Radio" and "sh int dot11Radio stati"
Hello,
Could someone explain me the counters in the 2 following display on an AP (like a AIR-AP1231G)
sh int dot11Radio 0
sh int dot11Radio 0 statistics
SiteR02#sh int dot11Radio 0
Dot11Radio0 is up, line protocol is up
Hardware is 802.11G Radio, address is 000f.3415.bf30 (bia 000f.3415.bf30)
MTU 1500 bytes, BW 54000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:12, output 00:00:12, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/30 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
24680 packets input, 3282575 bytes, 0 no buffer
Received 129 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
23427 packets output, 4831674 bytes, 0 underruns
212 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
SiteR02#sh int dot11Radio 0 statistics
DOT11 Statistics (Cumulative Total/Last 5 Seconds):
RECEIVER TRANSMITTER
Host Rx Bytes: 3265473 / 0 Host Tx Bytes: 4338004 / 0
Unicasts Rx: 88699 / 1 Unicasts Tx: 27040 / 0
Unicasts to host: 88699 / 1 Unicasts by host: 23629 / 0
Broadcasts Rx: 0 / 0 Broadcasts Tx: 4601528 / 49
Beacons Rx: 0 / 0 Beacons Tx: 4601528 / 49
Broadcasts to host: 0 / 0 Broadcasts by host: 0 / 0
Multicasts Rx: 0 / 0 Multicasts Tx: 0 / 0
Multicasts to host: 0 / 0 Multicasts by host: 0 / 0
Mgmt Packets Rx: 0 / 0 Mgmt Packets Tx: 3411 / 0
RTS received: 0 / 0 RTS transmitted: 1721 / 0
Duplicate frames: 230 / 0 CTS not received: 1597 / 0
CRC errors: 4303 / 0 Unicast Fragments Tx: 26833 / 0
WEP errors: 0 / 0 Retries: 2540 / 0
Buffer full: 0 / 0 Packets one retry: 435 / 0
Host buffer full: 0 / 0 Packets > 1 retry: 174 / 0
Header CRC errors: 43265 / 0 Protocol defers: 2 / 0
Invalid header: 311 / 0 Energy detect defers: 206 / 0
Length invalid: 0 / 0 Jammer detected: 0 / 0
Incomplete fragments: 0 / 0 Packets aged: 0 / 0
Rx Concats: 0 / 0 Tx Concats: 0 / 0
RATE 2.0 Mbps
RATE 5.5 Mbps
RATE 11.0 Mbps
SiteR02#
Somes counters are displayed on those 2 displays but it is not with the same figure (CRC errors, input, output, broadcast, ...)
Can someone explaines me this ?
regards,Hello, do you know the formula ?
If I had errors to the "input field -from sh int-" then I don't get the unicats received field in the "sh int stat".
Regards, -
How to parse Dir Command Output ?
Hi All,
When I execute the Dir /tc i'll get the output :-
Volume in drive D has no label.
Volume Serial Number is E878-37E9
Directory of D:\rohit
02/15/2006 10:06 AM <DIR> .
02/15/2006 10:06 AM <DIR> ..
03/13/2006 11:03 AM 2,349 appe_attr_sheet.xls
03/13/2006 10:38 AM 2,149 appe_goal_sheet.xls
02/15/2006 10:09 AM 32,768 CV.doc
3File(s) 296,513 bytes
2 Dir(s) 16,253,956,096 bytes free
But i want only files details. How to parse the above String to this :-
03/13/2006 11:03 AM 2,349 appe_attr_sheet.xls
03/13/2006 10:38 AM 2,149 appe_goal_sheet.xls
02/15/2006 10:09 AM 32,768 CV.doc
Thanks.HI All,
I am confused .. here what i have written:-
public class TestStringConversion
public TestStringConversion()
Process objPerm = null;
BufferedReader input = null;
String[] sTokens;
String command = "cmd /c dir /tc";
try {
objPerm = Runtime.getRuntime().exec(command);
input =
new BufferedReader(
new InputStreamReader(
objPerm.getInputStream()));
StringBuffer output = new StringBuffer();
String lineOutput = null;
int lineNo = 0;
while ((lineOutput = input.readLine()) != null ) {
if(lineOutput.indexOf("<DIR>")>0 && lineOutput.indexOf("File(s)")==-1 && lineOutput.indexOf("Dir(s)")==-1)
continue;
lineNo++;
if (lineNo > 5) {
//&& lineOutput.indexOf("<DIR>")==-1 && lineOutput.indexOf("File(s)")==-1 && lineOutput.indexOf("Dir(s)")==-1
output.append(lineOutput + "\n");
Pattern pat =Pattern.compile("^((0?[1-9])|(1\\d)|(2\\d)|(3[0-1]))\\/");
Matcher mat;
mat = pat.matcher(output);
if (mat.find()){
System.out.println(output);
}else{
} catch (Exception e) {
public static void main(String args[])
new TestStringConversion();
Plz let me know what i have to do , to get only Files from a directory and put it into treemap.
Thanks. -
Hello all,
I have a question for you about the functionality of the u201CNext int. review dateu201D in credit management which I hope you can help me with.
If I understand correctly then basically when the next int. review date is reached then all the sales orders that are created will be blocked. Is this correct?
Does this apply only for new sales orders that are created or will the sales orders that were created before the next int. review date was reached blocked as well?
If the sales orders are blocked and the next internal review date has been changed to a date in the future is there a program that unblocks all the sales orders that were blocked as result of the next int. review date?
We are using the dynamic credit check process.
Thanks,hello, friend.
1. you can change credit limit en masse by -
a. using t-code MASS and choosing Customer credit - central data, and Customer credit - status
b. using LSMW to automate FD32
2. to assign a customer as reference for credit control for several customers (let's say Customer A with credit limit of 100,000. Customers B, C and D share in the limit), you can do the following:
a. execute FD32 and enter Customer B
b. on status page, click EDIT > CHANGE CREDIT ACCT. a message will appear advising you to reorganize data.
c. on the next screen, enter Customer A in credit account. save.
d. repeat for Customer C and D.
e. now run t-code F.28 for these customers.
f. when you create sales transactions, you will notice the credit data of only A is updated, while the rest will have zero.
regards. -
Formatting output of integers in to a table
My output prints:(after I feed it integers from a "Test" class array)
4 6 3 8 21
9 1 5 3 18
13 7 8 11 39
numbers are right, but I need to format the table
the output needs to look like this:
int int int int | rowsum
int int int int | rowsum
int int int int | rowsum
colsum colsum colsum colsum | total
How do I do this?
I have no idea?
I'm supposed to write a toString( ) method to format the table as nicely as possible, without
using the exotic formatting in the IO library.
This is what I have so far:
import java.awt.Graphics;
import java.applet.Applet;
public class TwoWayTable extends Applet {
int numRows;
int numCols;
int [] [] cell;
int [] rowSum;
int [] colSum;
int grandTotal;
public TwoWayTable(int [][] data){
cell = new int [data.length][data.length];
for(int i = 0; i < data.length; i++){
for(int j = 0; j < data.length; j++){
cell[i][j] = data[i][j];
calcTotals(cell);
for(int i = 0; i < cell.length; ++i){
for(int j = 0; j < cell.length; ++j){
System.out.print(cell[i][j] + " ");
System.out.println(rowSum + " ");
for(int j = 0; j < cell.length-1; ++j){
System.out.print(colSum[j] + " ");
System.out.println(colSum[cell.length-1] + " " + (grandTotal));
public void calcTotals(int [][] data2){
grandTotal = 0;
rowSum = new int[data2.length];
colSum = new int[data2.length];
for(int numRows = 0; numRows < data2.length; numRows++){
for(int numCols = 0; numCols < data2.length; numCols++){
grandTotal += data2[numRows][numCols];
rowSum[numRows] += data2[numRows][numCols];
colSum[numCols] += data2[numRows][numCols];
Would appreciate any help.Try this code,
public class TwoWayTable
int [][] cell;
public static void main(String a[])
int[][] data=new int[3][5];
data[0]=new int[] {4,6,3,8,21};
data[1]=new int[] {9,1,5,3,18};
data[2]=new int[] {13,7,8,11,39};
TwoWayTable tt=new TwoWayTable(data);
System.out.println(tt.toString());
public TwoWayTable(int data[][])
cell = new int[data.length][data[0].length];
cell = data;
public String toString()
StringBuffer sb = new StringBuffer("");
for(int row=0;row<cell.length;row++)
for(int col=0;col<cell[row].length;col++)
sb.append(cell[row][col]+"\t");
sb.append("|\t"+calRowSum(cell[row])+"\n");
int[] colSum=calColSum(cell);
for(int num=0;num<colSum.length;num++)
sb.append(colSum[num]+"\t");
sb.append("|\t"+calRowSum(colSum));
return sb.toString();
public int calRowSum(int[] data)
int total=0;
for(int num=0;num<data.length;num++) total+=data[num];
return total;
public int[] calColSum(int[][] data)
int[] totals=new int[5];
for(int row=0;row<data.length;row++)
for(int col=0;col<data[row].length;col++) totals[col]+=data[row][col];
return totals;
}Sudha -
Input to output (pixel by pixel) problems
I'm at the start of creating a simple plugin. My aim is to put everything from input to output but pixel by pixel. I'm using a CCU example for that, but this causes problems.
Here's my code:
PF_EffectWorld *inputP = ¶ms[0]->u.ld;
PF_Pixel8 *inputPix = (PF_Pixel8 *)inputP->data;
PF_Pixel8 *outPix = (PF_Pixel8 *)output->data;
for (int i=0; i<output->height; i++)
for (int j=0; j<output->width; j++)
*outPix++ = *inputPix++;
My original footage looks like this:
And after using my code it looks like this:
After adding the bold line everything works (why do I have to use that line?):
for (int i=0; i<output->height; i++)
for (int j=0; j<output->width; j++)
*outPix++ = *inputPix++;
for(int k=0;k<4;k++) inputPix++;
But when I'm trying to use the plugin again on the same footage it looks like this:
Am I missing something? What causes that? When I use the callback funcion everything works fine, but I have to do that using the above way 'cause I have to have access to every pixel of the footage.
Thanks in advance, DavidIt is called gutter or row padding, each row may contain more pixel than the actual width. You can check for this with the rowBytes value of inputP.
The CCU example already compensates for this, so look there for more information:
in_gutterL = (inputP->rowbytes / sizeof(PF_Pixel8)) - inputP->width,
out_gutterL = (outputP->rowbytes / sizeof(PF_Pixel8)) - outputP->width;
// At the end of each row, account for the gutter
// (this number can vary by platform and for other reasons)
if (yL >= 0 && yL < inputP->height){
bop_inP += in_gutterL;
bop_outP += out_gutterL;
Maybe you are looking for
-
Hi, I have installed Windows 7 to my bootcamp partition and everything was working fine until now... now when I close the lid the computer keeps running and the white LED turns on (not blinking)... when I open the lid the LED turns off but the screen
-
Backing up data on old MACBOOK and iPhone 3
Hi all, What is the best way to help my friend back up her data? I have a friend with an older white MacBook running I believe 10.5 and an older iPhone three or three GS Currently the MacBook has only 10 gigs free And her iPhone 3g has over 4000 pict
-
Hi, I've checked how to use Kannada keyboard in Yosemite. But, there are some 'vattu forms' and other grammar in Kannada language that I don't know how to use it. I know how to change between the keyboards and can also view keyboard. However, For eg,
-
I'm trying to create a smart album containing all the pictures I modified let's say within the last 3 months. Even though there is a dedicated exif field for this information there seems to be no option to include this as a search parameter. correct
-
Identity problems with Outlook
I just installed Office and Outlook to my MacBook Air (my old MacBook Pro was stolen). I've managed to get everything at place from my backup, but when I try to open Outlook I get the following notification (translated from Swedish): It's not possibl